package com.chenwei.transactional.cwAnnotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**事务注解
 * @author: chenwei
 * @date: 2021/4/2 18:44
 */
//能作用在方法上和类上
@Target({ElementType.METHOD,ElementType.TYPE})
//可以通过反射获取该注解信息
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface CWTransactional {

}
